﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Entitys.FG
{
    public class FG_Picking_Outbound_Info
    {
        public int Picking_outbound_id { get; set; }

        /// <summary>
        /// 拣货出库单号
        /// </summary>
        public string Picking_outbound_code { get; set; }

        /// <summary>
        /// 仓库编码
        /// </summary>
        public string Warehouse_code { get; set; }
        public string Warehouse_name { get; set; }

        /// <summary>
        /// 库区编码
        /// </summary>
        public string Zone_code { get; set; }
        public string Zone_name { get; set; }
        /// <summary>
        /// 出库时间
        /// </summary>
        public DateTime? Picking_outbound_time { get; set; }

        /// <summary>
        /// 拣货人ID
        /// </summary>
        public int? Picking_outbound_rep_id { get; set; }

        /// <summary>
        /// 拣货部门ID
        /// </summary>
        public int? Picking_outbound_dept_id { get; set; }

        /// <summary>
        /// 拣货出库状态
        /// </summary>
        public char Picking_outbound_status { get; set; }

        /// <summary>
        /// 审核状态
        /// </summary>
        public char Picking_outbound_audit_status { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        public string Picking_outbound_audit_by { get; set; }

        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? Picking_outbound_audit_time { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string Create_by { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? Create_time { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public string Update_by { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? Update_time { get; set; }

        /// <summary>
        /// 删除标志(0:未删除 1:已删除)
        /// </summary>
        public char Del_flag { get; set; }

        public List<details> Details { get; set; }
        public class details
        {
            public int Picking_outbound_details_id { get; set; }

            /// <summary>
            /// 拣货出库单ID（关联fg_picking_outbound表）
            /// </summary>
            public int Picking_outbound_id { get; set; }

            /// <summary>
            /// 拣货出库单号
            /// </summary>
            public string Picking_outbound_code { get; set; }

            /// <summary>
            /// 产品名称
            /// </summary>
            public string Pro_name { get; set; }

            /// <summary>
            /// 产品编码
            /// </summary>
            public string Pro_code { get; set; }
            /// <summary>
            /// 品牌
            /// </summary>
            public string Pro_brand { get; set; }
            /// <summary>
            /// 规格型号
            /// </summary>
            public string Pro_model { get; set; }
            /// <summary>
            /// 单位
            /// </summary>
            public int Measure_id { get; set; }
            /// <summary>
            /// 库位不会
            /// </summary>
            public string Location_code { get; set; }
            /// <summary>
            /// 库位昵称
            /// </summary>
            public string Location_name { get; set; }

            /// <summary>
            /// 产品属性ID
            /// </summary>
            public int? Pro_attribute_id { get; set; }

            /// <summary>
            /// 拣货出库数量
            /// </summary>
            public decimal Picking_outbound_qty { get; set; }
            /// <summary>
            /// 待出库
            /// </summary>
            public decimal Picking_for_outbound_qty { get; set; }
        }
    }
}
